package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 菜单按钮信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemMenuButtonInsertRequestDTO extends BaseRequestDTO {
    /**
     * 菜单ID
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "菜单ID",required = true)
    private Long menuId;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "代码（KEY）",required = true)
    private String code;

    /**
     * 显示值
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam(value = "菜单显示值",required = true)
    private String value;

    /**
     * 显示值2
     *
     * @mbggenerated
     */
    @ApiParam(value = "菜单显示值2(备用字段)",required = false)
    private String value2;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
